package composite;

/**
 * @author : DuJiabao
 * @Date : 2021/3/3 15:45
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
public abstract class OrganizationComponent {
  private String name;
  private String desc;

  public OrganizationComponent() {
  }

  public OrganizationComponent(String name, String desc) {
    this.name = name;
    this.desc = desc;
  }

  public abstract void add(OrganizationComponent organizationComponent);

  public abstract void remove(OrganizationComponent organizationComponent);

  public abstract void print();

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }
}
